package com.ncloud.aaaa.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.ncloud.aaaa.model.UserRole;
import com.ncloud.aaaa.model.UserRolePK;

public interface UserRoleRepository extends CrudRepository<UserRole, UserRolePK> {
	
	@Query("FROM UserRole t WHERE t.id.userId = :userId")
	public List<UserRole> findByUserId(@Param("userId") Long userId);
}
